import re

s = 'pytho0python1pythonn2'

r = re.findall('python?', s)
# r = re.findall('python+', s)
# r = re.findall('python*', s)

print(r)
